package com.sgj.dao;

import com.sgj.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 沈国纪
 * @date 2021/3/16 9:40
 */
public interface TeacherMapper {

    // 获取所有老师
    List<Teacher> getTeachers();

    // 获取指定老师下的所有学生及老师的信息
    Teacher getTeacher(@Param("id")int id);

    Teacher getTeacher2(@Param("id")int id);
}
